package com.zkyc.framework.common.pojo;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (Organization)实体类
 *
 * @author libingchuan
 * @since 2022-05-25 16:06:10
 */
@TableName("web_organization")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Organization implements Serializable {
    private static final long serialVersionUID = 782413661537848063L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 组织名称
     */
    private String organizationName;
    /**
     * 组织名称(前端展示用,实际上就是组织名称)
     */
    @TableField(exist = false)
    private String centerName;
    /**
     * 组织名称
     */
    private String picUrl;
    /**
     * 操作人
     */
    private String operateUserId;


    @TableField(exist = false)
    private String operateUserName;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreated;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdated;
    /**
     * 逻辑删
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;

    @TableField(exist = false)
    private Integer treeType;

    @TableField(exist = false)
    private List<Center> children;

    private String description;


}

